import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '../components/Login'
import Detail from '../components/Detail'
import Detail2 from '../components/Detail2'
import Publish from '../components/Publish'
import History from '../components/History'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(Router)
Vue.use(ElementUI)

export default new Router({
  routes: [
    {
      path: '/',
      name:'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/detail',
      name:'Detail',
      component: Detail,
    },
    {
      path: '/login',
      name:'Login',
      component: Login
    },
    {
      path: '/detail2',
      name:'Detail2',
      component: Detail2
    },
    {
      path: '/publish',
      name:'Publish',
      component: Publish
    },
    {
      path:'/history',
      name:'History',
      component:History
    }
  ]
})
